// This program illustrates the Switch construct


class SwitchOne
{
	public static void main (String args[])
	{
		ObjectOne one = new ObjectOne();
		one.go();
    }
}
class ObjectOne
{
	public void go()
	{
		int max = 10;
		int rand = (int)((Math.random() *max)+1);

	switch (rand)
	{
		case 1: System.out.println("Bananas");
			    break;
		case 2: System.out.println("Oranges");
			    break;
		case 3: System.out.println("Pears");
		case 4: System.out.println("Apples");
		case 5: System.out.println("Plums");
			    break;
		case 6: System.out.println("Pineapples");
			    break;
		case 7: break;
		default: System.out.println("Nuts");
			     break;
	}
}
}

